package com.iwuke.dance.wallet.adapter;

import android.content.Context;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.iwuke.dance.R;
import com.iwuke.dance.util.ToastUtil;

import java.util.List;

import androidx.annotation.NonNull;

/**
 * @author: 魏从响
 * @date: 2025/10/14
 */
public class AddBandCardAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    private final Context context;

    public AddBandCardAdapter(Context context, int adapterAddBankCard, List<String> lists) {
        super(adapterAddBankCard, lists);
        this.context = context;
    }

    @Override
    protected void convert(@NonNull BaseViewHolder baseViewHolder, String s) {

        ImageView img_band_card = baseViewHolder.findView(R.id.img_band_card);
        TextView tv_band_card_name = baseViewHolder.findView(R.id.tv_band_card_name);
        TextView tv_confirm = baseViewHolder.findView(R.id.tv_confirm);

        tv_band_card_name.setText(s);

        tv_confirm.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ToastUtil.setToast(context,"开发中...");
            }
        });

    }
}
